package com.xinghanlaser.applet.base.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinghanlaser.applet.base.auth.dto.UserDetailDTO;
import com.xinghanlaser.applet.base.auth.entity.UserDO;
import com.xinghanlaser.applet.base.auth.vo.UserDataVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author dym
 * @since 2019-11-19
 */
@Mapper
public interface UserMapper extends BaseMapper<UserDO> {
    UserDetailDTO selectUserDetail(@Param("user") UserDO user);

    List<UserDataVO> getUserListByRoleId(@Param("roleId")Long roleId);
}
